package com.yuejian.neusoft.yuejian_24.service;

import com.yuejian.neusoft.yuejian_24.javaBean.Collected;
import com.yuejian.neusoft.yuejian_24.javaBean.Img;
import com.yuejian.neusoft.yuejian_24.javaBean.Success;
import com.yuejian.neusoft.yuejian_24.javaBean.Train;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;



public interface TrainService {
    @GET("index.php/Train/trainlist")
    Call<List<Train>> trainlist(
            @Query("grade")String grade
    );
    @GET("index.php/Train/alltrain")
    Call<List<Train>> alltrain();
    @GET("index.php/Train/gettraininfo")
    Call<Train> gettraininfo(
            @Query("trainid")String trainid
    );

    @GET("index.php/Train/follow")
    Call<Success> follow(
            @Query("trainid")String trainid,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/Train/isCollected")
    Call<Collected> isCollected(
            @Query("trainid")String trainid,
            @Query("uid")String uid,
            @Query("type")String type
    );
    @GET("index.php/api/Train/lunbo")
    Call<List<Img>> lunbo();
}
